package mlz.j_proxy;

import java.util.Arrays;

/*
测试类
 */
public class DemoTest {
    public static void main(String[] args) throws Exception {
        //1.创建用户业务对象
        UserService userService = ProxyUtil.createProxyService(new UserServiceImpl());

        //2.调用用户业务功能
        userService.login("admin","123345");

        System.out.println("------------------------");

        userService.deleteUsers();

        System.out.println("------------------------");

        String[] names = userService.selectUsers();
        System.out.println(Arrays.toString(names));
    }
}





